package com.daydayup.test20190112;

public class Car extends Vehicle {

	/** 车型 */
	private String type;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public double getSunRent(int day) {
		double money = 0L;
		switch (type) {
		case "两箱":
			money = 300;
			break;
		case "三箱":
			money = 350;
			break;
		case "越野":
			money = 500;
			break;
		default:
			money = 0L;
		}
		return money * day;
	}

}
